
class Saler {
	static int leftTickes=3;//静态变量
    //int leftTickes=3;//实例变量
void SaleTicket() {
	if (leftTickes>0) {
		leftTickes--;
		System.out.println("售票成功");
	}else {
		System.out.println("票已经售完");
	}
}
}
